﻿@using Domain.Entity
@using Microsoft.Web.Helpers
@using Pro260Website.Infrastructure


<!DOCTYPE html>
<html>
<head>
    <meta charset="utf-8" />
    <title>@ViewBag.Title</title>
    <link href="@Url.Content("~/Content/Site.css")" rel="stylesheet" type="text/css" />
    <script src="@Url.Content("~/Scripts/jquery-1.5.1.js")" type="text/javascript"></script>
    <script src="@Url.Content("~/Scripts/modernizr-1.7.min.js")" type="text/javascript"></script>
    <script src="@Url.Content("~/Scripts/jquery.unobtrusive-ajax.js")" type="text/javascript"></script>
    
    <script>
        $(document).ready(function () {
            adjustHeight();
        });
        
        function adjustHeight() {
            $('#sidePageBackground').height($('#pageContent').height());
        }
    </script>
</head>

    <body>
        <div id="categories">
            @{ Html.RenderAction("Menu", "Nav", new { area = "" }); }
        </div>
        <div id="pageContent">
            <div id="content">
                 @RenderBody()
            </div>
            <div  id="sidePageBackground">
                <div id="content">
                    <div class="sideBox actionButtons @Html.GetColor(Request.Cookies["color"])" >
                        @{ Html.RenderAction("LogOn", "Account", new{ Area = ""}); }
                    </div>
                    <br /><br />
                    <div class="sideBox facebookStyle">
                        <div style="background-color: rgb(226, 230, 245);border: 2px solid #627AAD;border-radius:1.2em;padding: 10px 0 8px 0">
                            @Facebook.ActivityFeed("", 209)
                        </div>    
                    </div>
                    <br/>
                    <div class="sideBox twitterStyle">
                        <div style="padding-left: 35%">
                            @Twitter.TweetButton()
                        </div>
                    </div>

                    
                    <br/><br/><br/>
                    @{ Html.RenderAction("GamesList", "Game", new {  
                            title = "Top 10 Most Reviewed Games",
                            viewname = "GameWidgetList",
                            type = GameViewType.TopReviewed,
                            page = 1,
                            pageSize = 10,
                            area = ""}); } <br/><br/><br/> <br />
                        
                        @{ Html.RenderAction("GamesList", "Game", new {  
                            title = "Top 10 Most Popular Games",
                            type = GameViewType.MostPopular,
                            page = 1,
                            pageSize = 10,
                            viewname = "GameWidgetList",
                            area = ""}); }<br/><br/><br/> <br />
                        @{ Html.RenderAction("GamesList", "Game", new {  
                            title = "Top 10 Highly Rated Games",
                            type = GameViewType.TopRated,
                            page = 1,
                            pageSize = 10,
                            viewname = "GameWidgetList",
                            area = ""}); }

                </div>
                
            </div>
        </div>
    </body>
</html>
